home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / games / nhak_src.zip / ARTIFACT.H < prev    next >
C/C++ Source or Header  |  1993-03-16  |  2KB  |  39 lines

  1. /*    SCCS Id: @(#)artifact.h    3.0    88/07/27
  2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. #ifdef NAMED_ITEMS
  6. #ifndef ARTIFACT_H
  7. #define ARTIFACT_H
  8.  
  9. #define SPFX_NONE   0x0000    /* no special effects, just a bonus */
  10. #define SPFX_NOGEN  0x0001    /* item is special, bequeathed by gods */
  11. #define SPFX_RESTR  0x0002    /* item is restricted - can't be named */
  12. #define    SPFX_INTEL  0x0004    /* item is self-willed - intelligent */
  13. #define SPFX_SPEEK  0x0008    /* item can speak */
  14. #define SPFX_SEEK   0x0010    /* item helps you search for things */
  15. #define SPFX_WARN   0x0020    /* item warns you of danger */
  16. #define SPFX_ATTK   0x0040    /* item has a special attack (attk) */
  17. #define SPFX_DEFN   0x0080    /* item has a special defence (defn) */
  18. #define SPFX_DRLI   0x0100    /* drains a level from monsters */
  19. #define SPFX_SEARCH 0x0200    /* helps searching */
  20. #define SPFX_DMONS  0x1000    /* attack bonus on one monster type */
  21. #define    SPFX_DCLAS  0x2000    /* attack bonus on monsters w/ symbol mtype */
  22. #define    SPFX_DFLAG1 0x4000    /* attack bonus on monsters w/ mflags1 flag */
  23. #define    SPFX_DFLAG2 0x8000    /* attack bonus on monsters w/ mflags2 flag */
  24.  
  25. #define SPFX_DBONUS 0xF000    /* attack bonus mask */
  26.  
  27. struct artifact {
  28.     unsigned    otyp;
  29.     const char  *name;
  30.     unsigned    spfx;
  31.     unsigned long mtype;    /* monster type, symbol, or flag */
  32.     struct attack attk, defn;
  33.     uchar        align;    /* alignment of bequeathing gods */
  34.     char        class;    /* character class associated with */
  35. };
  36.  
  37. #endif /* ARTIFACT_H /* */
  38. #endif /* NAMED_ITEMS /* */
  39.